﻿<%@ Page Language="C#" MasterPageFile="~/Globals/GenericMasterPage.master" AutoEventWireup="true"
    CodeFile="ABMProductos.aspx.cs" Inherits="ABMProductos"
    Title="Untitled Page" %>

<%@ Register Src="../../Controls/TecnoPezPopUp.ascx" TagName="TecnoPezPopUp" TagPrefix="uc3" %>

<%@ Register Src="../../Controls/TecnopezDataGRIDABMView.ascx" TagName="TecnopezDataGRIDABMView"
    TagPrefix="uc2" %>

<%@ Register Src="../../Controls/TecnoPezUpdateProgress.ascx" TagName="TecnoPezUpdateProgress"
    TagPrefix="uc1" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="Microsoft.Practices.EnterpriseLibrary.Validation.Integration.AspNet"
    Namespace="Microsoft.Practices.EnterpriseLibrary.Validation.Integration.AspNet"
    TagPrefix="cc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPHPrincipal" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
<asp:Wizard id="wzrABM" runat="server" DisplaySideBar="False" Font-Size="0.8em" Font-Names="Verdana" BorderWidth="0px" BorderColor="#B5C7DE" ActiveStepIndex="1">
<StepStyle ForeColor="#333333" Font-Size="0.8em" VerticalAlign="Top"></StepStyle>

<SideBarStyle BackColor="#507CD1" Font-Size="0.9em" VerticalAlign="Top"></SideBarStyle>

<NavigationButtonStyle BackColor="White" BorderStyle="Solid" ForeColor="#284E98" BorderWidth="1px" BorderColor="#507CD1" Font-Size="0.8em" Font-Names="Verdana"></NavigationButtonStyle>
<WizardSteps>
<asp:WizardStep runat="server" ID="wzrBusqueda" Title="Busqueda" StepType="Complete"><TABLE style="WIDTH: 100%" id="TableData" cellSpacing=0><TBODY><TR><TD class="cabeceraTabla" colSpan=3>Buscar Producto</TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels"><asp:Label runat="server" Text="C&#243;digo" Width="200px" ID="lblBuscarCodigo"></asp:Label>
 </TD><TD style="WIDTH: 210px" class="columnaData"><asp:TextBox runat="server" Width="200px" ID="txtBuscarCodigo"></asp:TextBox>
 </TD><TD vAlign=top rowSpan=2><asp:Button runat="server" ID="cmdBuscar" Width="102px" CssClass="Boton" Text="Buscar" Height="23px" BorderStyle="None"></asp:Button>
 <asp:Button runat="server" ID="cmdNuevo" Width="102px" CssClass="Boton" Text="Nuevo" Height="23px" OnClick="cmdNuevo_Click"></asp:Button>
 </TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels"><asp:Label runat="server" Text="Nombre" Width="200px" ID="Label6"></asp:Label>
 </TD><TD style="WIDTH: 210px" class="columnaData"><asp:TextBox runat="server" Width="200px" ID="txtBuscarNombre"></asp:TextBox>
 </TD></TR><TR><TD style="HEIGHT: 170px" colSpan=3><uc2:TecnopezDataGRIDABMView runat="server" ID="grdProductos"></uc2:TecnopezDataGRIDABMView>
 </TD></TR></TBODY></TABLE></asp:WizardStep>
<asp:WizardStep runat="server" ID="wzrEdicion" Title="Edicion" StepType="Complete"><TABLE cellSpacing=0 width="100%"><TBODY><TR><TD style="HEIGHT: 20px" class="cabeceraTabla" colSpan=4>Datos del Producto</TD></TR><TR><TD style="WIDTH: 200px; HEIGHT: 26px" class="columnaLabels"><asp:Label runat="server" Text="C&#243;digo" Width="200px" ID="Label1"></asp:Label>
 </TD><TD style="WIDTH: 205px; HEIGHT: 26px" class="columnaData"><asp:TextBox runat="server" Width="200px" ID="txtCodigo"></asp:TextBox>
 </TD><TD style="WIDTH: 1px; HEIGHT: 26px" class="columnaData"><asp:RequiredFieldValidator runat="server" ControlToValidate="txtCodigo" ID="RFVCodigo">*</asp:RequiredFieldValidator>
 </TD><TD style="WIDTH: 6px" vAlign=top rowSpan=2><asp:Button runat="server" ID="cmdEditar" Width="102px" CssClass="Boton" Text="Editar" Height="23px" CausesValidation="False" OnClick="cmdEditar_Click"></asp:Button>
 <asp:Button runat="server" ID="cmdEliminar" Width="102px" CssClass="Boton" Text="Eliminar" Height="23px" CausesValidation="False" OnClick="cmdEliminar_Click"></asp:Button>
 </TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels"><asp:Label runat="server" Text="Nombre" Width="200px" ID="Label2"></asp:Label>
 </TD><TD style="WIDTH: 205px" class="columnaData"><asp:TextBox runat="server" Width="200px" MaxLength="30" ID="txtNombre"></asp:TextBox>
 </TD><TD style="WIDTH: 1px" class="columnaData"><asp:RequiredFieldValidator runat="server" ErrorMessage="Ingrese un nombre" ControlToValidate="txtNombre" ID="RFVNombre">*</asp:RequiredFieldValidator>
 </TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels"><asp:Label runat="server" Text="Descripci&#243;n" Width="200px" ID="Label3"></asp:Label>
 </TD><TD style="WIDTH: 205px" class="columnaData"><asp:TextBox runat="server" Width="200px" MaxLength="30" ID="txtDescripcion"></asp:TextBox>
 </TD><TD style="WIDTH: 1px" class="columnaData"></TD><TD style="WIDTH: 6px" vAlign=top rowSpan=1></TD></TR><TR><TD style="WIDTH: 200px" class="columnaLabels"><asp:Label runat="server" Text="Precio minorista" Width="200px" ID="lblContrasenia"></asp:Label>
 </TD><TD style="WIDTH: 205px" class="columnaData"><asp:TextBox runat="server" Width="200px" ID="txtPrecioMinorista"></asp:TextBox>
 </TD><TD style="WIDTH: 1px" class="columnaData">&nbsp;</TD><TD style="WIDTH: 6px"></TD></TR>
    <tr>
        <td class="columnaLabels" style="width: 200px" valign="top">
            <asp:Label ID="Label7" runat="server" Text="Precio mayorista" Width="200px"></asp:Label>
        </td>
        <td class="columnaData" style="width: 205px" valign="top">
            <asp:TextBox runat="server" Width="200px" ID="txtPrecioMayorista"></asp:TextBox>
        </td>
        <td class="columnaData" style="width: 1px" valign="top">
        </td>
        <td style="width: 6px" valign="bottom">
        </td>
    </tr>
    <tr>
        <td class="columnaLabels" style="width: 200px" valign="top">
            <asp:Label ID="Label8" runat="server" Text="Especie" Width="200px"></asp:Label>
        </td>
        <td class="columnaData" style="width: 205px" valign="top">
            <uc3:TecnoPezPopUp ID="TPPEspecie" runat="server" />
        </td>
        <td class="columnaData" style="width: 1px" valign="top">
        </td>
        <td style="width: 6px" valign="bottom">
        </td>
    </tr>
    <TR><TD style="WIDTH: 200px" class="columnaLabels" vAlign=top><asp:Label runat="server" Text="Unidad de medida" Width="200px" ID="Label5"></asp:Label>
 <asp:Label runat="server" Text="ID" Width="200px" ID="Label4" Visible="False"></asp:Label>
 </TD><TD style="WIDTH: 205px" class="columnaData" vAlign=top>
     <uc3:TecnoPezPopUp ID="TPPUnidadMedida" runat="server" TecnoPezActivateValidation="true" />
     &nbsp;&nbsp;<BR /><asp:TextBox runat="server" Width="200px" Visible="False" ID="txtId"></asp:TextBox>
 </TD><TD style="WIDTH: 1px" class="columnaData" vAlign=top></TD><TD style="WIDTH: 6px" vAlign=bottom><asp:Button runat="server" ID="cmdAceptar" Width="102px" CssClass="Boton" Text="Aceptar" Height="23px" OnClick="cmdAceptar_Click"></asp:Button>
 <asp:Button runat="server" ID="cmdCancelar" Width="102px" CssClass="Boton" Text="Cancelar" Height="23px" CausesValidation="False" OnClick="cmdCancelar_Click"></asp:Button>
 </TD></TR><TR><TD style="HEIGHT: 25px" vAlign=top colSpan=2><asp:Label runat="server" CssClass="errorLabel" ID="_lblError"></asp:Label>
 <BR /><cc2:PropertyProxyValidator runat="server" ID="PPVCodigo" DisplayMode="List" SetFocusOnError="True" Display="Dynamic" RulesetName=""></cc2:PropertyProxyValidator>
 <BR /><cc2:PropertyProxyValidator runat="server" ID="PPVNombre" DisplayMode="List" SetFocusOnError="True" Display="Dynamic" RulesetName=""></cc2:PropertyProxyValidator>
     <br />
     <cc2:PropertyProxyValidator ID="PPVUnidadMedida" runat="server" Display="Dynamic"
         DisplayMode="List" OnValueConvert="PPVUnidadMedida_ValueConvert" RulesetName=""
         SetFocusOnError="True"></cc2:PropertyProxyValidator>
 </TD><TD style="WIDTH: 1px; HEIGHT: 25px" vAlign=top colSpan=1></TD><TD style="WIDTH: 6px; HEIGHT: 25px" vAlign=top></TD></TR></TBODY></TABLE></asp:WizardStep>
</WizardSteps>

<SideBarButtonStyle BackColor="#507CD1" ForeColor="White" Font-Names="Verdana"></SideBarButtonStyle>

<HeaderStyle BackColor="#284E98" BorderStyle="Solid" ForeColor="White" BorderWidth="2px" BorderColor="#EFF3FB" HorizontalAlign="Center" Font-Size="0.9em" Font-Bold="True"></HeaderStyle>
</asp:Wizard> 
</ContentTemplate>
    </asp:UpdatePanel>
    <uc1:TecnoPezUpdateProgress ID="TecnoPezUpdateProgress1" runat="server" />
    
</asp:Content>

